package com.ysd.lis.entity.cri;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysd.lis.entity.BaseEntityJpa;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/***
 *@title CriUserVsDept
 *@author WH
 *@version 1.0.0
 *@create 2025/4/22 9:45
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("CRI_USER_VS_DEPT")
@Entity
@Table(name = "CRI_USER_VS_DEPT")
public class CriUserVsDept extends BaseEntityJpa {
    private static final long serialVersionUID = 1L;


    /**
     * 用户code
     */
    @Column(name = "USERNAME")
    @TableField("USERNAME")
    private String username;

    /**
     * 部门ID
     */
    @Column(name = "DEPT_ID")
    @TableField("DEPT_ID")
    private String deptId;
    /**
     * 部门ID
     */
    @Column(name = "DEPT_CODE")
    @TableField("DEPT_CODE")
    private String deptCode;

    @TableField(exist = false)
    @Transient
    private String deptName;

}
